package mest.dao.cxj;

import mest.VO.cxj.PlanOtherIncomeRecordVO;
import mest.entity.PlanOtherIncomeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PlanOtherIncomeRecordDao {

    /**
     * 添加计划收款单记录
     *
     * @param poir
     * @param theirDb
     * @return
     */
    Integer insertPlanOtherIncomeRecord(@Param("poir") PlanOtherIncomeRecord poir, @Param("theirDb") String theirDb);


    /**
     * 根据ID查询所有计划收款单记录
     *
     * @return
     */
    List<PlanOtherIncomeRecordVO> selectAllPlanOtherIncomeRecordById(@Param("page") Integer page, @Param("limit") Integer limit,
                                                                     @Param("poicId") Integer poicId, @Param("theirDb") String theirDb);

    /**
     * 根据ID查询所有计划收款单数量
     *
     * @return
     */
    Integer selectCountPlanOtherIncomeRecordById(@Param("poicId") Integer poicId, @Param("theirDb") String theirDb);
}